package br.ufal.ic.fracao.agent;

import java.util.ArrayList;
import java.util.List;

public class Teste {

	public static void main(String[] args) {
		Facade facade = Facade.getInstance();
		
		facade.getCoordinatorAgent().setExpression("2+5*3");
		String result = facade.getCoordinatorAgent().getResult();
		while(result == null || result.equals("")){
			result = facade.getCoordinatorAgent().getResult();
		}
		System.out.println(result);
		
		
		List<String> steps = new ArrayList<String>();
		steps.add("1/2+1");
		steps.add("3/2");
		
		facade.getAvaliatorAgent().avaliator("1/2+1/2*2", steps);
		String avaliation = facade.getAvaliatorAgent().getAvaliationFinal();
		while(avaliation == null || avaliation.equals("")){
			avaliation = facade.getAvaliatorAgent().getAvaliationFinal();
		}
		System.out.println(avaliation);
		
		
	}
	
}
